import { request } from '@/request/request.js'

// 获取精品歌单第一条数据
export const getGoodSongList = () =>
  request('/top/playlist/highquality', { limit: 1 })

// 获取热门歌单tag
export const getHotTag = () => request('/playlist/hot')

// 获取热门歌单分类
export const getHotType = () => request('/playlist/catlist')

// 获取歌单列表
export const getMusicList = (params) => request('/top/playlist', params)

// 根据id获取歌单详细信息
export const getMusicListDetail = (params) =>
  request('/playlist/detail', params)

// 获取歌单评论
export const getMusicListComment = (params) =>
  request('/comment/playlist', params)

// 获取收藏者数据
export const getMusicListCollect = (params) =>
  request('playlist/subscribers', params)

// 发布评论
export const setComment = (params) => request('/comment', params)

// 点赞评论
export const addLikeBtn = (params) => request('/comment/like', params)
